@import "common.scss";
@mixin icon-load-up {
    // 加载图标
    .icon-load {
        position: absolute;
        bottom: 120px;
        left: 50%;
        transform: translateX(-50%);
        width: 90px;
        height: 60px;
        text-align: center;
        .iconLoad {
            font-size: 50px;
            color: #ccc;
        }
        .loading {
            color: #ccc;
            font-size: 26px;
            margin-top: 30px;
        }
    }
    // 向上图标
    .icon-up {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 30px;
        background: red;
        text-align: center;
        .iconUp {
            font-size: 30px;
            color: #fff;
        }
    }
}

.redRead {
    color: red;
}

.bannerBox {
    margin: 0 auto;
    padding: 150px 0;
    width: 1100px;
    height: 140px;
    text-align: center;
    border-bottom: 1px solid #888;
    h1 {
        font-weight: bold;
        font-size: 66px;
        color: #000;
        margin-bottom: 35px;
    }
    h2 {
        font-weight: 500;
        font-size: 40px;
        color: #000;
    }
}

// 灰色区域
.greyCont {
    position: relative;
    width: 1200px;
    margin: 0 auto;
    margin-top: 180px;
    padding: 0 50px 250px;
    // padding: 0 0 180px;
    height: 1500px;
    background-color: #f3f3f3;
    @mixin boxShadow {
        box-shadow: 0 5px 10px 0 #ccc;
    }
    @mixin follow {
        position: absolute;
        width: 50px;
        height: 25px;
        line-height: 25px;
        border: 1px solid #000;
        text-align: center;
        font-size: 14px;
    }
    @mixin top {
        margin-bottom: 20px;
        height: 40px;
        line-height: 4 0px;
        display: flex;
        justify-content: space-between;
        h3 {
            font-size: 30px;
            color: #8b8a8a;
        }
        .moreBox {
            margin-top: 20px;
            margin-right: 10px;
            a {
                color: #8b8a8a;
            }
            i {
                margin-left: 10px;
                width: 15px;
                height: 15px;
                border-radius: 50%;
                background-color: #8b8a8a;
                color: #fff;
            }
            &:hover a {
                color: red;
            }
            &:hover i {
                background-color: red;
            }
        }
    }
    @mixin right-item-info {
        padding: 40px 0;
        padding-left: 10px;
        font-weight: bold;
        width: 100%;
        height: 140px;
        p:first-child {
            margin-top: 10px;
            font-size: 26px;
            color: #666;
        }
        p:last-child {
            margin-top: 10px;
            font-size: 18px;
            color: #888;
        }
    }
    // 文章 区域
    .article {
        position: absolute;
        top: -180px;
        margin-top: 85px;
        width: 90%;
        .articleTop {
            @include top;
        }
        .article-row {
            margin-top: 10px;
            width: 1200px;
            height: 500px;
            display: flex;
            justify-content: space-between;
            .article-item {
                position: relative;
                width: 390px;
                height: 100%;
                background-color: #fff;
                transition: all .5s;
                .item-info {
                    color: #666;
                    padding: 30px 10px 0;
                    p:last-of-type {
                        margin-top: 20px;
                        font-size: 10px;
                        // color: #666;
                    }
                    .author {
                        // color: red;
                        position: absolute;
                        bottom: 15px;
                        left: 10px;
                    }
                    .likeBox {
                        position: absolute;
                        bottom: 10px;
                        right: 10px;
                        width: 80px;
                        line-height: 25px;
                        text-align: center;
                        height: 25px;
                        font-size: 10px;
                        border-radius: 20px;
                        border: 1px solid #666;
                        background-color: #fff;
                        // color: #fff;
                        .iconLike {
                            color: red;
                            vertical-align: middle;
                        }
                    }
                }
                 :hover {
                    cursor: pointer;
                    p:first-of-type {
                        color: red;
                    }
                    .author {
                        color: red;
                    }
                    .likeBox {
                        color: #fff;
                        background-color: red;
                        .iconLike {
                            color: #fff;
                        }
                    }
                }
                &:hover {
                    transform: scale(1.03);
                    box-shadow: 3px 5px 7px 0 #ccc;
                }
            }
        }
    }
    @include icon-load-up;
}